package com.ayitubie.refuelweb.service;

import com.ayitubie.refuelweb.entity.GasStation;
import com.ayitubie.refuelweb.mapper.GasStationMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GasStationServ {

    @Autowired
    public GasStationMapper gasStationMapper;

    public List<GasStation> getAllStation() {
        return gasStationMapper.getAllStation();
    }

    public GasStation getSation(int stationId) {
        return gasStationMapper.getSation(stationId);
    }

}
